﻿<UserControl  x:Class="WPFExcelReport.Controls.TBASE1"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
                    Background="White"   
     > 
            <WrapPanel Grid.Row="1">
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
                <Button    Command="{Binding QueryCommand}"  Height="20" Margin="5,0,0,0" Width="24" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Search.png" />
                    </Button.Background>
                </Button>
            <TextBlock Grid.Column="1" >查询</TextBlock>
        </Grid>
        <Grid Margin="10,0,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Button   Command="{Binding NewCommand}" Height="20" Margin="5,0,0,0" Width="24" >
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/New.png" />
                </Button.Background>
            </Button>
            <TextBlock Grid.Column="1" >新建</TextBlock>
        </Grid>
        <Grid Margin="10,0,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Button   Command="{Binding EditCommand}" Height="20" Margin="5,0,0,0" Width="24" >
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Edit.png" />
                </Button.Background>
            </Button>
            <TextBlock Grid.Column="1" >编辑</TextBlock>
        </Grid> 
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Command="{Binding DeleteCommand}" Height="20" Margin="5,0,0,0" Width="24" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Delete.png" />
                    </Button.Background>
                </Button>
            <TextBlock Grid.Column="1" >删除</TextBlock>
        </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button    Command="{Binding CopyCommand}" Height="20" Margin="5,0,0,0" Width="24" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/copy.png" />
                    </Button.Background>
                </Button>
            <TextBlock Grid.Column="1" >复制</TextBlock>
        </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button   Command="{Binding SaveCommand}" Height="20" Margin="5,0,0,0" Width="24" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Save.png" />
                    </Button.Background>
                </Button>
            <TextBlock Grid.Column="1" >保存</TextBlock>
        </Grid>
       
    </WrapPanel>
</UserControl >
